Einhugur macOS Bridge plugin.

EinhugurCoreBridge.NSMutableArray Class

Read and write array for Cocoa objects.

EinhugurCoreBridge.NSArray
   NSMutableArray

class EinhugurCoreBridge.NSMutableArray

Constructors

NSMutableArrayDefault constructor for the NSMutableArray.

Properties

ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
Count (Inherited) Returns number of elements in the array.
Handle (Inherited) Returns Integer handle to the native NSObject structure.

Methods

AddAdds NSObject to the array.
AddBooleanAdds boolean to the array.
AddDoubleAdds double to the array.
AddFromArrayAdds all the values from an array, one by one into the array.
AddIntegerAdds integer to the array.
AddStringAdds string to the array.
BooleanValue (Inherited) Returns Boolean value from the array at given index or false if the element at given index was not NSNumber.
shared CastDoes deep cast on incoming NSObject to NSMutableArray
Contains (Inherited) Returns a Boolean value that indicates whether a given object is present in the array.
Contains (Inherited) Returns a Boolean value that indicates whether a given string is present in the array.
DoubleValue (Inherited) Returns Double value from the array at given index or false if the element at given index was not NSNumber.
shared FromIntegerPtrConstructs NSMutableArray object from Integer handle coming from declares or 3rd party plugin.
IndexOf (Inherited) Returns the lowest index whose corresponding array value is equal to a given object.
IndexOf (Inherited) Returns the lowest index whose corresponding array value is equal to a given string.
InsertAtInserts object at given index.
IntegerValue (Inherited) Returns Integer value from the array at given index or false if the element at given index was not NSNumber.
shared IsNSMutableArrayReturns true if the NSObject under the hood is NSMutableArray or derived from NSMutableArray.
Operator_Subscript (Inherited) Gets NSObject from given index in the array.
Operator_SubscriptSets value at given index in the array.
Release (Inherited) Releases the NSObject.
RemoveAtRemoves value from the array at given index.
Retain (Inherited) Retains the NSObject
StringValue (Inherited) Returns String value from the array at given index or false if the element at given index was not String.

Constants

Version = 5.0 (Inherited)

Examples

Note when you take out of NSMutableArray class then you will need to do “deep cast” as in use .Cast like for example NSImage.Cast to cast the objects if you want to get them as anything but base NSObject.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • iOS
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit